package com.longyi.tenant;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description 描述
 * @Date 2020-08-26 5:42 下午
 * @Author wuyanshen
 */
@Component
@ConfigurationProperties(prefix = "tenant")
@Data
public class TenantProperties {

    /**
     * 不需要租户过滤的表
     */
    private List<String> tables = new ArrayList<>();

    /**
     * 是否开启多租户功能,默认不开启
     */
    private boolean enable = false;

}
